/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hiberengine;

/**
 *
 * @author Alexx
 */

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "USER1")
public class User1 {

    @Id
    @Column(length = 10)
    private String id;

    
    @Column(length = 10, nullable = false)
    private String login;

    
    @Column(length = 15, nullable = false)
    private String role;

   
    @Column(length = 15, nullable = false)
    private String password;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
